package com.example.event;

import lombok.Data;

/**
 * 商品编辑事件
 * @author yu
 */
@Data
public class ProductChangedEvent {

    private Long productId;

    private Long skuId;

    private EventType eventType;

    public ProductChangedEvent(Long skuId) {
        this.skuId = skuId;
    }

    public enum EventType {
        ON,
        OFF,
        EDIT,
        MODIFY_STOCK
    }
}
